<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="am-u-sm-9">
<ol class="am-breadcrumb">
  <li><a href="#">商品分类</a></li>
  <li class="am-active">新建</li>
</ol>
<form class="am-form am-form-horizontal" action="${ctx}/admin/goodsType/save.do" method="post">
  <input type="hidden" name="dicKey" value="goods_type"/>
  <input type="hidden" name="name" value="商品分类"/>
  <div class="am-form-group">
    <label class="am-u-sm-2 am-form-label">名称</label>
    <div class="am-u-sm-10 am-fl-im">
      <input type="text" class="am-form-field am-input-sm" name="dicVal" >
    </div>
  </div>
  <div class="am-form-group">
    <label  class="am-u-sm-2 am-form-label">排序</label>
    <div class="am-u-sm-1 am-fl-im">
      <input type="text" name="sort" class="am-form-field am-input-sm" value="${max}" readonly>
    </div>
  </div>
  <div class="am-form-group">
    <div class="am-u-sm-10 am-u-sm-offset-2">
      <button type="submit" class="am-btn am-btn-success am-radius">提交</button>
      <button type="button" class="am-btn am-btn-default" onclick="goback()">返回</button>
    </div>
  </div>
</form>
</div>
<script>
  function goback(){
    location.href="${ctx}/admin/goodsType/index.do"
  }
</script>